<?php

use think\facade\Route;
use app\api\middleware\UserVisitLog;

Route::group('cms', function () {

    Route::group('article', function () {
        //文章列表
        Route::get('lists', 'cms.Article/lists');
        //文章详情
        Route::get('detail', 'cms.Article/detail');
    });

    Route::group('cate', function () {
        //文章栏目列表
        Route::get('lists', 'cms.ArticleCate/lists');
        //文章栏目详情
        Route::get('detail', 'cms.ArticleCate/detail');
        //获取文章栏目
        Route::get('all', 'cms.ArticleCate/all');
    });

})->middleware([
    UserVisitLog::class
]);